<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bilibili 后台管理系统 - 登录</title>
	<script src="js/jquery.js"></script>
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/backLogin.css">
</head>

<body>
    <!-- 粒子背景容器 -->
    <div id="particles-js"></div>

    <div class="container">
        <div class="logo">
            <div class="logo-icon">
                <i class="fas fa-tv"></i>
            </div>
            <div class="logo-text">
                BILIBILI
                <span>后台管理系统</span>
            </div>
        </div>

        <h2>管理员登录</h2>

        <form id="loginForm" action="admins.do" method="post" >
            <div class="input-group">
                <i class="fas fa-user"></i>
                <input type="text" id="username" placeholder="请输入用户名" required name="username">
            </div>

            <div class="input-group">
                <i class="fas fa-lock"></i>
                <input type="password" id="password" placeholder="请输入密码" required name="password">
            </div>

            <button type="submit" class="btn">登录</button>
        </form>
    </div>

    <!-- 引入粒子背景库 -->
    <script src="js/particles.min.js"></script>
    <script src="js/backLogin.js"></script>
</body>
<script>
	$.ajax({
		url:"administorInfo",
		type:"post",
		success:function(data){
			$(".user-avatar").css({
				"background-image":"url("+data.data.avatarUrl+")",
				"background-size":"cover"
			}).text("");
			$(".username").text(data.data.nickname)
		}
	})
</script>
</html>